#!/bin/bash

if [ $# -lt 1 ]
then
  echo "I need a name for the new component"
  exit
fi

name=$1

echo "Generating skeleton .h and .cc for game component: \"$name\""
sed -e "s/%COMPONENT_NAME%/$name/g" GameComponent.h.template > $name.h 
sed -e "s/%COMPONENT_NAME%/$name/g" GameComponent.cc.template > $name.cc
echo "Done"

